package cn.newhopedairy.order.infrastructure.db.po;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.newhopedairy.common.po.SuperPo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 子订单表
 *
 * @author Neo.Li
 * @since 2021-01-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sub_order")
@ApiModel(value="SubOrderPo对象", description="子订单表")
public class SubOrderPo extends SuperPo {


    @ApiModelProperty(value = "主订单ID")
    @TableField("main_order_id")
    private Long mainOrderId;

    @ApiModelProperty(value = "公司/租户ID")
    @TableField("company_id")
    private Long companyId;

    @ApiModelProperty(value = "店铺ID")
    @TableField("shop_id")
    private Long shopId;

    @ApiModelProperty(value = "按店铺拆分的购物清单JSON")
    @TableField("shopping_list")
    private String shoppingList;


}
